package com.wl.cms.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wl.cms.entity.CrmBanner;
import com.wl.cms.service.CrmBannerService;
import com.wl.connonutils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 首页banner表 前端控制器
 * </p>
 *
 * @author wl
 * @since 2021-09-02
 */
@RestController
@RequestMapping("/cms/bannerfront")
public class CrmBannerFrontController {

    @Autowired
    private CrmBannerService crmBannerService;

   //查询所有Banner
    @GetMapping("getAllBanner")
    public R getAllBanner(){
        List<CrmBanner> list = crmBannerService.selectAllBanner();
        return R.ok().data("list",list);
    }


}

